:where(.css-dev-only-do-not-override-kbg4zp).ant-rate{
    font-size: 13px;
    color: #FFC107;
}
:where(.css-dev-only-do-not-override-kbg4zp).ant-card .ant-card-body{
    padding: 0;
}
/* 基础样式 */
.doctor_d_container {
  background-color: #F5F0EB;
  height: calc(100vh - 50px);
  overflow-y: auto;
  padding-bottom: 80px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  /* 限制最大宽度并居中 */
  max-width: 768px;
  margin: 0 auto;
}

/* 导航栏 */
.doctor_d_nav-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  height: 56px;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.doctor_d_back-btn {
  color: #8B5A2B;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.doctor_d_back-btn:hover,
.doctor_d_back-btn:focus {
  color: #8B5A2B;
  background-color: #f5f2ea;
}

.doctor_d_page-title {
  margin: 0 auto; /* 标题居中 */
  font-size: 18px;
  font-weight: 600;
  color: #8b4513;
}

/* 卡片通用样式 */
.doctor_d_card {
  margin: 16px auto; /* 卡片居中 */
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: none;
  overflow: hidden;
  max-width: 95%; /* 限制卡片最大宽度 */
}

.doctor_d_card-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
}

.doctor_d_card-icon {
  color: #8B5A2B;
  font-size: 22px;
  margin-right: 10px;
}

.doctor_d_card-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.doctor_d_card-divider {
  margin: 0;
  background-color: #f0e8d8;
}

/* 医师基础信息 */
.doctor_d_header {
  display: flex;
  align-items: center;
  padding: 20px;
  justify-content: center; /* 基础信息整体居中 */
}

.doctor_d_avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #f5f2ea;
  margin-right: 20px;
  object-fit: cover;
}

.doctor_d_info {
  flex: 1;
  min-width: 0; /* 防止内容溢出 */
}

.doctor_d_name-title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.doctor_d_name {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.doctor_d_title-tag {
  background-color: #f5f2ea;
  color: #8B5A2B;
  border-color: #e0d8c0;
  font-size: 12px;
  padding: 3px 10px;
  margin-left: 10px;
  border-radius: 20px;
}

.doctor_d_department {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doctor_d_rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.doctor_d_rating-text {
  font-size: 14px;
  color: #666;
  margin-left: 8px;
}

.doctor_d_experience {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* 医师简介 */
.doctor_d_intro {
  padding: 15px 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

/* 擅长领域 */
.doctor_d_specialties-container {
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doctor_d_specialty-tag {
  background-color: #f5f2ea;
  color: #8B5A2B;
  border-color: #e0d8c0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.doctor_d_specialty-tag:hover {
  background-color: #e9e3d5;
  transform: translateY(-2px);
}

/* 出诊时间 */
.doctor_d_schedule-container {
  padding: 0 20px;
}

.doctor_d_schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0e8d8;
  cursor: pointer;
  transition: background-color 0.2s;
}

.doctor_d_schedule-item:last-child {
  border-bottom: none;
}

.doctor_d_schedule-item:hover:not(.doctor_d_unavailable) {
  background-color: #f5f2ea;
}

.doctor_d_schedule-item.doctor_d_selected {
  background-color: #e9e3d5;
  border-left: 3px solid #8B5A2B;
  padding-left: 8px;
  margin-left: -8px;
}

.doctor_d_schedule-day {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  width: 60px;
}

.doctor_d_schedule-time {
  font-size: 14px;
  color: #666;
  flex: 1;
  text-align: center;
}

.doctor_d_status-available {
  background-color: #e8f5e9;
  color: #388e3c;
  border-color: #c8e6c9;
  font-size: 13px;
  border-radius: 20px;
  padding: 4px 10px;
}

.doctor_d_status-unavailable {
  background-color: #ffebee;
  color: #d32f2f;
  border-color: #ffcdd2;
  font-size: 13px;
  padding: 4px 10px;
  opacity: 0.6;
  border-radius: 20px;
}

.doctor_d_unavailable {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 底部预约按钮 */
.doctor_d_reserve-bar {
  position: fixed;
  bottom: 50px;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 10px 12px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
  /* 限制按钮栏宽度并居中 */
  max-width: 768px;
  margin: 0 auto;
}

.doctor_d_reserve-btn {
  width: 100%;
  height: 45px;
  background-color: #8B5A2B;
  border-color: #8B5A2B;
  color: #fff;
  font-size: 17px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto; /* 按钮居中 */
}

.doctor_d_reserve-btn:hover,
.doctor_d_reserve-btn:focus {
  background-color: #A0522D;
  border-color: #A0522D;
  color: #fff;
}

.doctor_d_reserve-btn:disabled {
  background-color: #d0c4b0;
  border-color: #d0c4b0;
  cursor: not-allowed;
}

.doctor_d_reserve-icon {
  font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 375px) {
  .doctor_d_header {
    flex-direction: column;
    align-items: center; /* 小屏幕下头像和信息都居中 */
  }
  
  .doctor_d_avatar {
    margin-bottom: 16px;
    margin-right: 0;
  }
  
  .doctor_d_info {
    text-align: center; /* 信息文字居中 */
  }
  
  .doctor_d_name-title {
    justify-content: center; /* 姓名和职称居中 */
  }
  
  .doctor_d_rating {
    justify-content: center; /* 评分居中 */
  }
  
  .doctor_d_schedule-item {
    flex-direction: column;
    align-items: center; /* 日程项居中 */
    gap: 8px;
  }
  
  .doctor_d_schedule-time {
    text-align: center;
    width: 100%;
  }
}
